//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
//
//*********************************************************
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Controls.Primitives;
using Microsoft.UI.Xaml.Data;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Media;
using Microsoft.UI.Xaml.Navigation;
using Microsoft.UI;

namespace WinUIGallery.ControlPages
{
    public sealed partial class SliderPage : Page
    {
        public SliderPage()
        {
            this.InitializeComponent();
        }

        private void SnapsToRadioButtons_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            switch (SnapsToRadioButtons.SelectedItem)
            {
                case "StepValues":
                    Slider3.SnapsTo = SliderSnapsTo.StepValues;
                    break;
                default:
                    Slider3.SnapsTo = SliderSnapsTo.Ticks;
                    break;
            }
        }
    }
}
